<?php
class TDataTableRescisaoCandidatos extends TDataTable
{
    public function __construct($contratoid,$options = array())
    {
        $model  = new ViewRescisaoCandidatos();
        $criterio = array('precondicao'=>'contratoid = '.$contratoid);
        $key = 'contratoid';
	    parent::__construct($model,$key,$criterio,$options);
	    $this->addColumnsData(array('vagaid', array('name'=>'cpf','header'=>'cpf','mask'=>TDataTableColumn::MASK_CPF), 'nome', 'cargo', 'lotacao', 'status', array('name'=>'salario','header'=>'salario','mask'=>TDataTableColumn::MASK_MONEY), array('name'=>'SALARIO BRUTO','header'=>'SALARIO BRUTO','mask'=>TDataTableColumn::MASK_MONEY)));	
    }
}